/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package apt;

import java.awt.FlowLayout;
import java.awt.HeadlessException;
import javax.swing.JButton;
import javax.swing.JFrame;

/**
 *
 * @author PhiNguyen
 */
public class ButtonDemo extends JFrame{
    private JButton btnLogin;
    
    public ButtonDemo(String title) throws HeadlessException{
        super(title);
        FlowLayout layout = new FlowLayout();
        this.setLayout(layout);
        
        btnLogin = new JButton("Login");
        this.add(btnLogin);
        this.pack();
    }
    
}
